<?php /* Smarty version 2.6.25, created on 2013-10-11 10:18:50
         compiled from language/views/translation.translate.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'count', 'language/views/translation.translate.tpl', 1, false),)), $this); ?>
<?php if (count($this->_tpl_vars['allTrans']) > 0): ?>
	<!-- MESSAGE -->
	<?php if (true == $this->_tpl_vars['translationSucess']): ?>
						<div class="notification success png_bg">
                            <a href="#" class="close"><img src="<?php echo $this->_tpl_vars['LAYOUT_HELPER_URL']; ?>
admin/images/icons/cross_grey_small.png" title="Close this notification" alt="close" /></a>
                            <div>
                                Translation is saved successfully
                            </div>
                        </div>
	<?php endif; ?>
	<!-- END MESSAGE -->
<p><input class="button" type="submit" value="Save" /></p>	
<table>
    <tbody>
    
    <?php $_from = $this->_tpl_vars['allTrans']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['translation'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['translation']['total'] > 0):
    foreach ($_from as $this->_tpl_vars['word'] => $this->_tpl_vars['item']):
        $this->_foreach['translation']['iteration']++;
?>
    	<?php $this->assign('i', $this->_foreach['translation']['iteration']); ?>
        <!-- Expandable permission -->
        <tr> 
            <td>
            	<strong><?php echo $this->_tpl_vars['word']; ?>
</strong>
            	<input type="hidden" name="data[<?php echo $this->_tpl_vars['i']; ?>
][key]" value="<?php echo $this->_tpl_vars['word']; ?>
">
            </td>
        </tr>
        <tr>
            <td colspan="2">
                <table style="border-collapse: separate;">
                    <?php $_from = $this->_tpl_vars['item']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['lang'] => $this->_tpl_vars['item2']):
?>
                    <tr class="alt-row"> 
                        <td style="width: 10px;"><img src="<?php echo $this->_tpl_vars['BASE_URL']; ?>
media/userfiles/images/icons/flags/language/16/<?php echo $this->_tpl_vars['lang']; ?>
.png" /></td>
                        <td><input style="width: 97%" class="text-input small-input" id="trans" name="data[<?php echo $this->_tpl_vars['i']; ?>
][<?php echo $this->_tpl_vars['lang']; ?>
] " value="<?php echo $this->_tpl_vars['item2']; ?>
"></input></td>
                    </tr> 
                    <?php endforeach; endif; unset($_from); ?>
                </table>
            </td>
        </tr>
        <tr><td colspan="2"></td></tr>
    <?php endforeach; endif; unset($_from); ?>    
        
    
    </tbody>
</table>
<p><input class="button" type="submit" value="Save" /></p>
<?php else: ?>
<div class="notification information png_bg">
    <div>
        There is no translate in this language.
    </div>
</div>
<?php endif; ?>